package com.cim.pojo;


public class Course {

  private String courseName;
  private String courseId;
  private String courseClass;
  private String courseIntroduce;
  private String courseTeacher;
  private String teacherIntroduce;
  private String courseSource;
  private String courseImg;
  private String liveCourse;
  private String createTime;
  private String referTime;

  @Override
  public boolean equals(Object o){
      if(o==null) return false;
      if(o.getClass()!=Course.class) return false;
      if(o instanceof Course){
          Course obj=(Course)o;
          if(obj.getCourseId()!=null&&obj.getCourseId().equals(courseId)){
              return true;
          }
      }
      return false;
  }

  @Override
  public int hashCode() {
      return courseId==null?0:courseId.hashCode();
  }

  public Course() {
  }

  public Course(String courseName, String courseId, String courseClass, String courseIntroduce, String courseTeacher, String teacherIntroduce, String courseSource, String courseImg, String liveCourse, String createTime, String referTime) {
    this.courseName = courseName;
    this.courseId = courseId;
    this.courseClass = courseClass;
    this.courseIntroduce = courseIntroduce;
    this.courseTeacher = courseTeacher;
    this.teacherIntroduce = teacherIntroduce;
    this.courseSource = courseSource;
    this.courseImg = courseImg;
    this.liveCourse = liveCourse;
    this.createTime = createTime;
    this.referTime = referTime;
  }

  public String getCourseName() {
    return courseName;
  }

  public void setCourseName(String courseName) {
    this.courseName = courseName;
  }


  public String getCourseId() {
    return courseId;
  }

  public void setCourseId(String courseId) {
    this.courseId = courseId;
  }


  public String getCourseClass() {
    return courseClass;
  }

  public void setCourseClass(String courseClass) {
    this.courseClass = courseClass;
  }


  public String getCourseIntroduce() {
    return courseIntroduce;
  }

  public void setCourseIntroduce(String courseIntroduce) {
    this.courseIntroduce = courseIntroduce;
  }


  public String getCourseTeacher() {
    return courseTeacher;
  }

  public void setCourseTeacher(String courseTeacher) {
    this.courseTeacher = courseTeacher;
  }


  public String getTeacherIntroduce() {
    return teacherIntroduce;
  }

  public void setTeacherIntroduce(String teacherIntroduce) {
    this.teacherIntroduce = teacherIntroduce;
  }


  public String getCourseSource() {
    return courseSource;
  }

  public void setCourseSource(String courseSource) {
    this.courseSource = courseSource;
  }


  public String getCourseImg() {
    return courseImg;
  }

  public void setCourseImg(String courseImg) {
    this.courseImg = courseImg;
  }


  public String getLiveCourse() {
    return liveCourse;
  }

  public void setLiveCourse(String liveCourse) {
    this.liveCourse = liveCourse;
  }


  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }


  public String getReferTime() {
    return referTime;
  }

  public void setReferTime(String referTime) {
    this.referTime = referTime;
  }

  @Override
  public String toString() {
    return "Course{" +
            "courseName='" + courseName + '\'' +
            ", courseId='" + courseId + '\'' +
            ", courseClass='" + courseClass + '\'' +
            ", courseIntroduce='" + courseIntroduce + '\'' +
            ", courseTeacher='" + courseTeacher + '\'' +
            ", teacherIntroduce='" + teacherIntroduce + '\'' +
            ", courseSource='" + courseSource + '\'' +
            ", courseImg='" + courseImg + '\'' +
            ", liveCourse='" + liveCourse + '\'' +
            ", createTime='" + createTime + '\'' +
            ", referTime='" + referTime + '\'' +
            '}';
  }
}
